package com.yz.springbootproducer;

import org.springframework.amqp.rabbit.core.RabbitAdmin;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootProducerApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(SpringbootProducerApplication.class, args);
		RabbitAdmin bean = run.getBean(RabbitAdmin.class);
		System.out.println(bean);
		//Producer producer = run.getBean(Producer.class);
		//producer.send();
	}

}
